/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-24 16:23:54
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-24 16:23:58
 * @别瞎看: 你个无脑牛马
 */
// 鸟类
class Bird extends Animal {
    private double wingSpan; // 鸟的翼展

    // 构造方法
    public Bird(String name, double wingSpan) {
        super(name);
        this.wingSpan = wingSpan;
    }

    // 重写 makeSound 方法
    @Override
    void makeSound() {
        System.out.println(name + "（翼展：" + wingSpan + "）啾啾叫。");
    }

    // 重写 move 方法
    @Override
    void move() {
        System.out.println(name + "（翼展：" + wingSpan + "）飞翔在蓝天。");
    }

    // getter 和 setter 方法
    public double getWingSpan() {
        return wingSpan;
    }

    public void setWingSpan(double wingSpan) {
        this.wingSpan = wingSpan;
    }
}